# -*- coding: utf-8 -*-
# @Time : 2020/9/23 下午7:29
# @Author : cc
# @Description : 功能描述
# @Email : chenchen@starmerx.com
# @Project : djangoProject
from django.urls import path, include
#
# from . import views
#
# app_name = 'polls'
# urlpatterns = [
#     path('', views.Project.as_view(), name='index'),
#     path('<path:name>/', views.DetailView, name='detail'),
#     path('<int:pk>/results/', views.ResultsView.as_view(), name='results'),
#     path('<int:question_id>/vote/', views.vote, name='vote'),
# ]
from polls.views import Project, Project2,testee
from rest_framework.routers import DefaultRouter
from rest_framework.routers import SimpleRouter

app_name = 'polls'
router = DefaultRouter()
router.register('project', Project, basename='project')
urlpatterns = [
    path('project2/', Project2.as_view(), name='project2'),
    path('', include((router.urls, 'polls'), namespace="project")),
    path('testee/', testee, name='testee'),
    # path('<int:pk>/results/', views.ResultsView.as_view(), name='results'),
    # path('<int:question_id>/vote/', views.vote, name='vote'),
]
# urlpatterns += router.urls
